package com.fox.stock.pojo.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 用户角色表
 * @TableName sys_user_role
 */
@ApiModel(description = "用户角色表")
@Data
@AllArgsConstructor
public class SysUserRole implements Serializable {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键",example = "1")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id",example = "1")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id",example = "1")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long roleId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;


    private static final long serialVersionUID = 1L;
}